import type { AppRouteModule } from '@/router/types';
import { RoleEnum } from '@/enums/roleEnum';

import { LAYOUT } from '@/router/constant';

const course: AppRouteModule = {
  path: '/course',
  name: 'Course',
  component: LAYOUT,
  redirect: '/course/index',
  meta: {
    hideChildrenInMenu: true,
    orderNo: 1,
    icon: 'ion:layers-outline',
    title: '健身课程',
    roles: [RoleEnum.JL, RoleEnum.USER],
  },

  children: [
    {
      path: 'index',
      name: 'CourseIndex',
      component: () => import('@/views/course/index.vue'),
      meta: {
        title: '健身课程',
        hideMenu: true,
        icon: 'simple-icons:aboutdotme',
        roles: [RoleEnum.JL, RoleEnum.USER],
      },
    },
  ],
};

export default course;
